package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.BtyPaymentOrder;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyPaymentOrderParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyPaymentOrderAndYybbResult;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyPaymentOrderResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 店面日营业现金支付详情表 Mapper 接口
 * </p>
 *
 * @author wjk
 * @since 2021-12-07
 */
public interface BtyPaymentOrderMapper extends BaseMapper<BtyPaymentOrder> {

    /**
     * 获取列表
     *
     * @author wjk
     * @Date 2021-12-07
     */
    List<BtyPaymentOrderResult> customList(@Param("paramCondition") BtyPaymentOrderParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wjk
     * @Date 2021-12-07
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BtyPaymentOrderParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wjk
     * @Date 2021-12-07
     */
    Page<BtyPaymentOrderResult> customPageList(@Param("page") Page page, @Param("paramCondition") BtyPaymentOrderParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author wjk
     * @Date 2021-12-07
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BtyPaymentOrderParam paramCondition);

    List<BtyPaymentOrderAndYybbResult> calculateCashAndPay(@Param("param") BtyPaymentOrderParam param,@Param("paidCashStartDate") String paidCashStartDate,@Param("xjbzStartDate") String xjbzStartDate);

    List<BtyPaymentOrderAndYybbResult> Yingye(@Param("param") BtyPaymentOrderParam param, @Param("paidCashStartDate") String paidCashStartDate,@Param("xjbzStartDate") String xjbzStartDate);

    List<BtyPaymentOrderAndYybbResult> payAll(@Param("param") BtyPaymentOrderParam param);

    List<BtyPaymentOrderAndYybbResult> cash(@Param("param") BtyPaymentOrderParam param, @Param("paidCashStartDate") String paidCashStartDate, @Param("xjbzStartDate") String xjbzStartDate);
}
